using System;
using System.Collections.Generic;
using NodeCanvas.DialogueTrees;
using UnityEngine;

public class Conversations : MonoBehaviour
{
	[Serializable]
	public class Story
	{
		public int achivementId;

		public DialogueTree dialogue;
	}

	public List<Story> stories = new List<Story>();

	public DialogueTree GetDialogueTreeForAchivement(GGStoryAchivementBase achivement)
	{
		foreach (Story story in stories)
		{
			if (story.achivementId == achivement.index)
			{
				return story.dialogue;
			}
		}
		return null;
	}
}
